package com.zlt.bkparking.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class AccessRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AccessRecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andArIdIsNull() {
            addCriterion("ar_id is null");
            return (Criteria) this;
        }

        public Criteria andArIdIsNotNull() {
            addCriterion("ar_id is not null");
            return (Criteria) this;
        }

        public Criteria andArIdEqualTo(Long value) {
            addCriterion("ar_id =", value, "arId");
            return (Criteria) this;
        }

        public Criteria andArIdNotEqualTo(Long value) {
            addCriterion("ar_id <>", value, "arId");
            return (Criteria) this;
        }

        public Criteria andArIdGreaterThan(Long value) {
            addCriterion("ar_id >", value, "arId");
            return (Criteria) this;
        }

        public Criteria andArIdGreaterThanOrEqualTo(Long value) {
            addCriterion("ar_id >=", value, "arId");
            return (Criteria) this;
        }

        public Criteria andArIdLessThan(Long value) {
            addCriterion("ar_id <", value, "arId");
            return (Criteria) this;
        }

        public Criteria andArIdLessThanOrEqualTo(Long value) {
            addCriterion("ar_id <=", value, "arId");
            return (Criteria) this;
        }

        public Criteria andArIdIn(List<Long> values) {
            addCriterion("ar_id in", values, "arId");
            return (Criteria) this;
        }

        public Criteria andArIdNotIn(List<Long> values) {
            addCriterion("ar_id not in", values, "arId");
            return (Criteria) this;
        }

        public Criteria andArIdBetween(Long value1, Long value2) {
            addCriterion("ar_id between", value1, value2, "arId");
            return (Criteria) this;
        }

        public Criteria andArIdNotBetween(Long value1, Long value2) {
            addCriterion("ar_id not between", value1, value2, "arId");
            return (Criteria) this;
        }

        public Criteria andPlIdIsNull() {
            addCriterion("pl_id is null");
            return (Criteria) this;
        }

        public Criteria andPlIdIsNotNull() {
            addCriterion("pl_id is not null");
            return (Criteria) this;
        }

        public Criteria andPlIdEqualTo(Integer value) {
            addCriterion("pl_id =", value, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdNotEqualTo(Integer value) {
            addCriterion("pl_id <>", value, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdGreaterThan(Integer value) {
            addCriterion("pl_id >", value, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("pl_id >=", value, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdLessThan(Integer value) {
            addCriterion("pl_id <", value, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdLessThanOrEqualTo(Integer value) {
            addCriterion("pl_id <=", value, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdIn(List<Integer> values) {
            addCriterion("pl_id in", values, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdNotIn(List<Integer> values) {
            addCriterion("pl_id not in", values, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdBetween(Integer value1, Integer value2) {
            addCriterion("pl_id between", value1, value2, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdNotBetween(Integer value1, Integer value2) {
            addCriterion("pl_id not between", value1, value2, "plId");
            return (Criteria) this;
        }

        public Criteria andLNumIsNull() {
            addCriterion("l_num is null");
            return (Criteria) this;
        }

        public Criteria andLNumIsNotNull() {
            addCriterion("l_num is not null");
            return (Criteria) this;
        }

        public Criteria andLNumEqualTo(String value) {
            addCriterion("l_num =", value, "lNum");
            return (Criteria) this;
        }

        public Criteria andLNumNotEqualTo(String value) {
            addCriterion("l_num <>", value, "lNum");
            return (Criteria) this;
        }

        public Criteria andLNumGreaterThan(String value) {
            addCriterion("l_num >", value, "lNum");
            return (Criteria) this;
        }

        public Criteria andLNumGreaterThanOrEqualTo(String value) {
            addCriterion("l_num >=", value, "lNum");
            return (Criteria) this;
        }

        public Criteria andLNumLessThan(String value) {
            addCriterion("l_num <", value, "lNum");
            return (Criteria) this;
        }

        public Criteria andLNumLessThanOrEqualTo(String value) {
            addCriterion("l_num <=", value, "lNum");
            return (Criteria) this;
        }

        public Criteria andLNumLike(String value) {
            addCriterion("l_num like", value, "lNum");
            return (Criteria) this;
        }

        public Criteria andLNumNotLike(String value) {
            addCriterion("l_num not like", value, "lNum");
            return (Criteria) this;
        }

        public Criteria andLNumIn(List<String> values) {
            addCriterion("l_num in", values, "lNum");
            return (Criteria) this;
        }

        public Criteria andLNumNotIn(List<String> values) {
            addCriterion("l_num not in", values, "lNum");
            return (Criteria) this;
        }

        public Criteria andLNumBetween(String value1, String value2) {
            addCriterion("l_num between", value1, value2, "lNum");
            return (Criteria) this;
        }

        public Criteria andLNumNotBetween(String value1, String value2) {
            addCriterion("l_num not between", value1, value2, "lNum");
            return (Criteria) this;
        }

        public Criteria andArIsAppointmentIsNull() {
            addCriterion("ar_is_appointment is null");
            return (Criteria) this;
        }

        public Criteria andArIsAppointmentIsNotNull() {
            addCriterion("ar_is_appointment is not null");
            return (Criteria) this;
        }

        public Criteria andArIsAppointmentEqualTo(Boolean value) {
            addCriterion("ar_is_appointment =", value, "arIsAppointment");
            return (Criteria) this;
        }

        public Criteria andArIsAppointmentNotEqualTo(Boolean value) {
            addCriterion("ar_is_appointment <>", value, "arIsAppointment");
            return (Criteria) this;
        }

        public Criteria andArIsAppointmentGreaterThan(Boolean value) {
            addCriterion("ar_is_appointment >", value, "arIsAppointment");
            return (Criteria) this;
        }

        public Criteria andArIsAppointmentGreaterThanOrEqualTo(Boolean value) {
            addCriterion("ar_is_appointment >=", value, "arIsAppointment");
            return (Criteria) this;
        }

        public Criteria andArIsAppointmentLessThan(Boolean value) {
            addCriterion("ar_is_appointment <", value, "arIsAppointment");
            return (Criteria) this;
        }

        public Criteria andArIsAppointmentLessThanOrEqualTo(Boolean value) {
            addCriterion("ar_is_appointment <=", value, "arIsAppointment");
            return (Criteria) this;
        }

        public Criteria andArIsAppointmentIn(List<Boolean> values) {
            addCriterion("ar_is_appointment in", values, "arIsAppointment");
            return (Criteria) this;
        }

        public Criteria andArIsAppointmentNotIn(List<Boolean> values) {
            addCriterion("ar_is_appointment not in", values, "arIsAppointment");
            return (Criteria) this;
        }

        public Criteria andArIsAppointmentBetween(Boolean value1, Boolean value2) {
            addCriterion("ar_is_appointment between", value1, value2, "arIsAppointment");
            return (Criteria) this;
        }

        public Criteria andArIsAppointmentNotBetween(Boolean value1, Boolean value2) {
            addCriterion("ar_is_appointment not between", value1, value2, "arIsAppointment");
            return (Criteria) this;
        }

        public Criteria andArIntoTimeIsNull() {
            addCriterion("ar_into_time is null");
            return (Criteria) this;
        }

        public Criteria andArIntoTimeIsNotNull() {
            addCriterion("ar_into_time is not null");
            return (Criteria) this;
        }

        public Criteria andArIntoTimeEqualTo(Date value) {
            addCriterion("ar_into_time =", value, "arIntoTime");
            return (Criteria) this;
        }

        public Criteria andArIntoTimeNotEqualTo(Date value) {
            addCriterion("ar_into_time <>", value, "arIntoTime");
            return (Criteria) this;
        }

        public Criteria andArIntoTimeGreaterThan(Date value) {
            addCriterion("ar_into_time >", value, "arIntoTime");
            return (Criteria) this;
        }

        public Criteria andArIntoTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("ar_into_time >=", value, "arIntoTime");
            return (Criteria) this;
        }

        public Criteria andArIntoTimeLessThan(Date value) {
            addCriterion("ar_into_time <", value, "arIntoTime");
            return (Criteria) this;
        }

        public Criteria andArIntoTimeLessThanOrEqualTo(Date value) {
            addCriterion("ar_into_time <=", value, "arIntoTime");
            return (Criteria) this;
        }

        public Criteria andArIntoTimeIn(List<Date> values) {
            addCriterion("ar_into_time in", values, "arIntoTime");
            return (Criteria) this;
        }

        public Criteria andArIntoTimeNotIn(List<Date> values) {
            addCriterion("ar_into_time not in", values, "arIntoTime");
            return (Criteria) this;
        }

        public Criteria andArIntoTimeBetween(Date value1, Date value2) {
            addCriterion("ar_into_time between", value1, value2, "arIntoTime");
            return (Criteria) this;
        }

        public Criteria andArIntoTimeNotBetween(Date value1, Date value2) {
            addCriterion("ar_into_time not between", value1, value2, "arIntoTime");
            return (Criteria) this;
        }

        public Criteria andArOutTimeIsNull() {
            addCriterion("ar_out_time is null");
            return (Criteria) this;
        }

        public Criteria andArOutTimeIsNotNull() {
            addCriterion("ar_out_time is not null");
            return (Criteria) this;
        }

        public Criteria andArOutTimeEqualTo(Date value) {
            addCriterion("ar_out_time =", value, "arOutTime");
            return (Criteria) this;
        }

        public Criteria andArOutTimeNotEqualTo(Date value) {
            addCriterion("ar_out_time <>", value, "arOutTime");
            return (Criteria) this;
        }

        public Criteria andArOutTimeGreaterThan(Date value) {
            addCriterion("ar_out_time >", value, "arOutTime");
            return (Criteria) this;
        }

        public Criteria andArOutTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("ar_out_time >=", value, "arOutTime");
            return (Criteria) this;
        }

        public Criteria andArOutTimeLessThan(Date value) {
            addCriterion("ar_out_time <", value, "arOutTime");
            return (Criteria) this;
        }

        public Criteria andArOutTimeLessThanOrEqualTo(Date value) {
            addCriterion("ar_out_time <=", value, "arOutTime");
            return (Criteria) this;
        }

        public Criteria andArOutTimeIn(List<Date> values) {
            addCriterion("ar_out_time in", values, "arOutTime");
            return (Criteria) this;
        }

        public Criteria andArOutTimeNotIn(List<Date> values) {
            addCriterion("ar_out_time not in", values, "arOutTime");
            return (Criteria) this;
        }

        public Criteria andArOutTimeBetween(Date value1, Date value2) {
            addCriterion("ar_out_time between", value1, value2, "arOutTime");
            return (Criteria) this;
        }

        public Criteria andArOutTimeNotBetween(Date value1, Date value2) {
            addCriterion("ar_out_time not between", value1, value2, "arOutTime");
            return (Criteria) this;
        }

        public Criteria andArPayMoneyIsNull() {
            addCriterion("ar_pay_money is null");
            return (Criteria) this;
        }

        public Criteria andArPayMoneyIsNotNull() {
            addCriterion("ar_pay_money is not null");
            return (Criteria) this;
        }

        public Criteria andArPayMoneyEqualTo(Double value) {
            addCriterion("ar_pay_money =", value, "arPayMoney");
            return (Criteria) this;
        }

        public Criteria andArPayMoneyNotEqualTo(Double value) {
            addCriterion("ar_pay_money <>", value, "arPayMoney");
            return (Criteria) this;
        }

        public Criteria andArPayMoneyGreaterThan(Double value) {
            addCriterion("ar_pay_money >", value, "arPayMoney");
            return (Criteria) this;
        }

        public Criteria andArPayMoneyGreaterThanOrEqualTo(Double value) {
            addCriterion("ar_pay_money >=", value, "arPayMoney");
            return (Criteria) this;
        }

        public Criteria andArPayMoneyLessThan(Double value) {
            addCriterion("ar_pay_money <", value, "arPayMoney");
            return (Criteria) this;
        }

        public Criteria andArPayMoneyLessThanOrEqualTo(Double value) {
            addCriterion("ar_pay_money <=", value, "arPayMoney");
            return (Criteria) this;
        }

        public Criteria andArPayMoneyIn(List<Double> values) {
            addCriterion("ar_pay_money in", values, "arPayMoney");
            return (Criteria) this;
        }

        public Criteria andArPayMoneyNotIn(List<Double> values) {
            addCriterion("ar_pay_money not in", values, "arPayMoney");
            return (Criteria) this;
        }

        public Criteria andArPayMoneyBetween(Double value1, Double value2) {
            addCriterion("ar_pay_money between", value1, value2, "arPayMoney");
            return (Criteria) this;
        }

        public Criteria andArPayMoneyNotBetween(Double value1, Double value2) {
            addCriterion("ar_pay_money not between", value1, value2, "arPayMoney");
            return (Criteria) this;
        }

        public Criteria andVtIdIsNull() {
            addCriterion("vt_id is null");
            return (Criteria) this;
        }

        public Criteria andVtIdIsNotNull() {
            addCriterion("vt_id is not null");
            return (Criteria) this;
        }

        public Criteria andVtIdEqualTo(Integer value) {
            addCriterion("vt_id =", value, "vtId");
            return (Criteria) this;
        }

        public Criteria andVtIdNotEqualTo(Integer value) {
            addCriterion("vt_id <>", value, "vtId");
            return (Criteria) this;
        }

        public Criteria andVtIdGreaterThan(Integer value) {
            addCriterion("vt_id >", value, "vtId");
            return (Criteria) this;
        }

        public Criteria andVtIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("vt_id >=", value, "vtId");
            return (Criteria) this;
        }

        public Criteria andVtIdLessThan(Integer value) {
            addCriterion("vt_id <", value, "vtId");
            return (Criteria) this;
        }

        public Criteria andVtIdLessThanOrEqualTo(Integer value) {
            addCriterion("vt_id <=", value, "vtId");
            return (Criteria) this;
        }

        public Criteria andVtIdIn(List<Integer> values) {
            addCriterion("vt_id in", values, "vtId");
            return (Criteria) this;
        }

        public Criteria andVtIdNotIn(List<Integer> values) {
            addCriterion("vt_id not in", values, "vtId");
            return (Criteria) this;
        }

        public Criteria andVtIdBetween(Integer value1, Integer value2) {
            addCriterion("vt_id between", value1, value2, "vtId");
            return (Criteria) this;
        }

        public Criteria andVtIdNotBetween(Integer value1, Integer value2) {
            addCriterion("vt_id not between", value1, value2, "vtId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}